package com.tac;

import javafx.application.Application;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.tac.dao")
@EnableTransactionManagement
public class Xiangmu8Application extends SpringBootServletInitializer {

//    @Override//这个表示使用外部的tomcat容器
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
//        // 注意这里要指向原先用main方法执行的启动类
//        return applicationBuilder.sources(Xiangmu8Application.class);
//    }

    public static void main(String[] args) {
        SpringApplication.run(Xiangmu8Application.class, args);
    }

}
